package com.gougou.rpc.service;

import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 该注解用于标记服务端哪些接口需要发布socket服务
 * Created by EX-ZHANZHENQIANG001 on 2018-05-02.
 */
@Target(ElementType.TYPE)           //作用在接口上
@Retention(RetentionPolicy.RUNTIME) //作用与运行时
@Component                          //能够被自动扫描到
public @interface RpcService {

    Class<?> value();

}
